package com.example.controller;

import com.example.entity.CreationTimeEntity;
import com.example.service.CreationTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
//数据可视化控制页面

@RestController
@RequestMapping("creationtime")
public class CreationTimeController {

    @Autowired
    private CreationTimeService creationtimeService;

    @RequestMapping("/list")
    public List<CreationTimeEntity> list(){
        return creationtimeService.findAll();
    }

}